package com.mt.system.itemRenderer {
	import com.mt.components.consts.SysConst;
	import com.mt.components.log.LogFactory;
	import com.mt.components.log.Logger;
	
	import mx.controls.Label;
	import mx.controls.listClasses.IListItemRenderer;
	
	/**      
	 * 文件名称：UserSexItemRenderer<br>
	 * 文件描述：用户性别重绘器<br>
	 * 创建人：马腾<br>
	 * 创建时间：Nov 26, 2012 8:22:09 PM<br>
	 * 修改人：马腾<br>
	 * 修改时间：Nov 26, 2012 8:22:09 PM<br>
	 */
	public class UserSexItemRenderer extends Label implements IListItemRenderer {
		
		private static var logger:Logger = LogFactory.getLogger(UserSexItemRenderer);
		
		public function UserSexItemRenderer() {
			super();
		}
		
		override public function set data(value:Object):void {
			super.data = value;
			if(data.sex == SysConst.SEX_MALE){
				text = "男";
			}else if(data.sex == SysConst.SEX_FEMALE){
				text = "女"; 
			}
		}
	}
}